package org.dromara.patrol.domain.bo;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.patrol.domain.PatrolSnapImg;

/**
 * 巡店管理-抓拍巡店图片业务对象 patrol_snap_img
 *
 * @author LionLi
 * @date 2024-03-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PatrolSnapImg.class, reverseConvertGenerate = false)
public class PatrolSnapImgBo extends BaseEntity {

    /**
     * 图片id
     */
    @NotNull(message = "图片id不能为空", groups = { EditGroup.class })
    private Long imgId;

    /**
     * 计划id
     */
    @NotNull(message = "计划id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long snapPlanId;

    /**
     * 门店id
     */
    @NotNull(message = "门店id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long storeId;

    /**
     * 设备id
     */
    @NotNull(message = "设备id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deviceId;

    /**
     * 通道ids
     */
    @NotBlank(message = "通道ids不能为空", groups = { AddGroup.class, EditGroup.class })
    private String channelIds;

    /**
     * 抓拍图片路径
     */
    @NotBlank(message = "抓拍图片路径不能为空", groups = { AddGroup.class, EditGroup.class })
    private String imgUrl;

    /**
     * 处理状态（字典表：INSPECTED 已处理，NON_INSPECT 未处理）
     */
    @NotBlank(message = "处理状态（字典表：INSPECTED 已处理，NON_INSPECT 未处理）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String inspectStatus;


}
